package com.demo.util.excel.beans;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

@Data
@AllArgsConstructor
public class ExcelHeaderVO<T> {

    private int startIndex;

    private int maxLength;

    private List<List<ExcelColumnVO<T>>> headerColumns;

    private List<ExcelColumnVO<T>> columns;

    public int getLastIndex() {
        return startIndex +  (maxLength - 1);
    }

}
